
/**
* @Title: ContentServiceImpl.java
* @Package com.leetone.rest.service.impl
* @Description: 【】
* @date 2018年3月17日 下午4:03:35
* @version V1.0
* @Company: 上海未泰信息技术有限公司
* @author:[谭磊][leetone123@163.com]
*/

package com.leetone.rest.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.leetone.mapper.ContentMapper;
import com.leetone.pojo.Content;
import com.leetone.pojo.ContentExample;
import com.leetone.pojo.ContentExample.Criteria;
import com.leetone.rest.service.ContentService;

/**
* @ClassName: ContentServiceImpl
* @Description: 【】
* @date 2018年3月17日 下午4:03:35
* @Company: 上海未泰信息技术有限公司
* @author:[谭磊][leetone123@163.com]
*/
@Service
public class ContentServiceImpl implements ContentService {
	@Autowired
	private ContentMapper contentMapper;
	/* (非 Javadoc)
	* 
	* 
	* @param contentCid
	* @return
	* @see com.leetone.rest.service.ContentService#getContentList(long)
	*/

	@Override
	public List<Content> getContentList(long contentCid) {
		ContentExample example = new ContentExample();
		Criteria criteria = example.createCriteria();
		criteria.andCategoryIdEqualTo(contentCid);
		return contentMapper.selectByExample(example);
	}

}
